import Axios from 'axios';
import Vue from 'vue';

export default {
        save(url,data){
            var vm = this;
           return Axios({
                url:url,
                method:'post',
                data:data
            }).then((res) => {
                // vm.$message({type:'success',message:'保存成功'});
                return res;
            });
        },

        delete(url,data){
            var vm = this;
            return Axios({
                url:url,
                method:'delete',
                data:data
            }).then((res) => {
                // vm.$message({type:'success',message:'删除成功'});
                return res;
            });
        }
};